<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../../org/angular.min.js"></script>
    <script src="../../org/jquery.min.js"></script>
</head>

<body ng-app="app" ng-controller="ctrl" ng-init="name='老周'">
    <span ng-bind="name"></span>
    <form action="1.php" method="post">
        数据： <input type="text" name="title" ng-model="title"><br> 提交：
        <textarea name="data" id="" cols="30" rows="10"></textarea>
        <input type="submit" value="提交">
    </form>
    <script>
        var m = angular.module('app', []);
        m.controller('ctrl', ['$scope', function($scope) {
            $('form').submit(function() {
                $('[name=data]').val($scope.title);
            })
        }])
    </script>
</body>

</html>
